﻿using RuoVea.Entity;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace RuoVea.Service
{
    public interface ISysRoleService
    {
        Task AddRole(AddRoleInput input);
        Task DeleteRole(DeleteRoleInput input);
        Task<string> GetNameByRoleId(long roleId);
        Task<dynamic> GetRoleDropDown();
        Task<SysRole> GetRoleInfo(QueryRoleInput input);
        Task<dynamic> GetRoleList(RoleInput input);
        Task<List<RoleOutput>> GetUserRoleList(long userId);
        Task GrantMenu(GrantRoleMenuInput input);
        Task<List<long>> OwnMenu(QueryRoleInput input);
        Task<dynamic> QueryRolePageList(RoleInput input);
        Task UpdateRole(UpdateRoleInput input);
    }
}